package top.oylan.manager.entity.api.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import top.oylan.manager.entity.Banner;

import java.util.Date;

@Data
@ApiModel
public class BannerEntity extends Banner {

    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("标题")
    private String name;

    @ApiModelProperty("资源地址")
    private String url;

    @ApiModelProperty("上传时间")
    private Date createTime;

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

}